package com.versita.utils;

import java.util.List;

import org.apache.log4j.Logger;


public class Instantiation {
    static Logger logger = Logger.getLogger(Instantiation.class);

    private List<Class> classes;

    public Instantiation() {
    }

    /**
     * Instantiate two classes
     * 
     * Hibernate
     * LoggerUtil
     * 
     * @param classes
     * @param configFile
     */
    public Instantiation(List<Class> classes, String configFile) {
        /**
         * Logger util
         */
        @SuppressWarnings("unused")
        LoggerUtil loggerConfigration = new LoggerUtil();

        for (Class table : classes) {
            logger.info("table " + table);
        }
        /**
         * Session factory util
         */
        HibernateUtil.getSessionFactory(classes, configFile);

    }

    /**
     * @return the classes
     */
    public List<Class> getClasses() {
        return classes;
    }

    /**
     * @param classes the classes to set
     */
    public void setClasses(List<Class> classes) {
        this.classes = classes;
    }
}